package com.jy.adscm.zltx.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2018-11-08
 */
public class SjFileVersionRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("fileId")
    private Integer fileId;
    @TableField("fileCode")
    private String fileCode;
    @TableField("versionCode")
    private String versionCode;
    @TableField("fileContent")
    private String fileContent;
    @TableField("issuer")
    private String issuer;
    @TableField("issueTime")
    private Date issueTime;
    @TableField("versionDesc")
    private String versionDesc;
    @TableField(exist = false)
   private String issuerName;
    @TableField(exist = false)
   private String fileName;

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getIssuerName() {
        return issuerName;
    }

    public void setIssuerName(String issuerName) {
        this.issuerName = issuerName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getFileId() {
        return fileId;
    }

    public void setFileId(Integer fileId) {
        this.fileId = fileId;
    }

    public String getFileCode() {
        return fileCode;
    }

    public void setFileCode(String fileCode) {
        this.fileCode = fileCode;
    }

    public String getVersionCode() {
        return versionCode;
    }

    public void setVersionCode(String versionCode) {
        this.versionCode = versionCode;
    }

    public String getFileContent() {
        return fileContent;
    }

    public void setFileContent(String fileContent) {
        this.fileContent = fileContent;
    }

    public String getIssuer() {
        return issuer;
    }

    public void setIssuer(String issuer) {
        this.issuer = issuer;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getIssueTime() {
        return issueTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setIssueTime(Date issueTime) {
        this.issueTime = issueTime;
    }

    public String getVersionDesc() {
        return versionDesc;
    }

    public void setVersionDesc(String versionDesc) {
        this.versionDesc = versionDesc;
    }

    @Override
    public String toString() {
        return "SjFileVersionRecord{" +
                "id=" + id +
                ", fileId=" + fileId +
                ", fileCode='" + fileCode + '\'' +
                ", versionCode='" + versionCode + '\'' +
                ", fileContent='" + fileContent + '\'' +
                ", issuer='" + issuer + '\'' +
                ", issueTime=" + issueTime +
                ", versionDesc='" + versionDesc + '\'' +
                ", issuerName='" + issuerName + '\'' +
                '}';
    }
}
